Do not call popover_set_relative with NULL
authorPaolo Borelli <pborelli@gnome.org>
Sat, 15 Feb 2014 10:30:53 +0000 (11:30 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 19 Feb 2014 05:25:34 +0000 (00:25 -0500)
This gives a critical warning since that function expects a
valid widget.

https://bugzilla.gnome.org/show_bug.cgi?id=724407

gtk/gtkmenubutton.c

index c79cebeae8a06c5f8719716bb445c504052559a1..3a81230e579039797d046478fcef593770029961 100644 (file)
@@ -1097,7 +1097,6 @@ gtk_menu_button_set_popover (GtkMenuButton *menu_button,
       g_signal_handlers_disconnect_by_func (priv->popover,
                                             menu_deactivate_cb,
                                             menu_button);
-      gtk_popover_set_relative_to (GTK_POPOVER (priv->popover), NULL);
     }
 
   priv->popover = popover;